import request from '@ey-utils/utils/services/request';
import api from '../api';

/**
 *  King
 */
export const create = async (values: any) => {
  return await request(api.metaMetaCreate, {
    method: 'post',
    data: values
  }).then(res => {
    return res;
  });
};
export const update = async (values: any) => {
  return await request(api.metaMetaUpdate, {
    method: 'post',
    data: values
  }).then(res => {
    return res;
  });
};
export const detail = async (id: string) => {
  return await request(api.metaMetaDetail, {
    method: 'get',
    params: {id,}
  }).then(res => {
    return res;
  });
};
export const page = async (queryKeys: any, pageNo: number, pageSize: number) => {
  return await request(api.metaMetaPage, {
    method: 'post',
    data: {
      mdType: 'MetaMeta',
      pageNo,
      pageSize,
      queryKeys,
    }
  }).then(res => {
    return res;
  });
};
export const remove = async (id: string) => {
  return await request(api.metaMetaRemove, {
    method: 'get',
    params: {id,}
  }).then(res => {
    return res;
  });
};
export const listMetaMeta = async () => {
  return await request(api.metaMetaList, {
    method: 'get',
  }).then(res => {
    return res;
  });
};
